﻿#include "mainwidget.h"

qmainWidget::qmainWidget(QWidget *parent)
    : QMainWindow(parent)
{
    pmenubar     = this->menuBar();
    pstatusbar   = this->statusBar();

    pmdiarea = new QMdiArea;
    pmdiarea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
    pmdiarea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
    setCentralWidget(pmdiarea);

    qactionlist = new QList<QAction*>();
    this->createAllQAction();
    delete(qactionlist);
    this->createMainMenu();
    this->createMainToolBar();
    this->createDockWidget();

}

qmainWidget::~qmainWidget()
{

}

void qmainWidget::closeEvent(QCloseEvent *event)
{
    qDebug()<<event->type();
}

void qmainWidget::createAllQAction(void)
{
#define action_create_icon(act,path,lb,st) do{      \
    Q_ASSERT(qactionlist->contains(act)==false);    \
    act = new QAction(QIcon(path),lb,this);         \
    act->setShortcut(st);                           \
    act->setToolTip(act->shortcut().toString());    \
    act->setStatusTip(lb);                          \
    qactionlist->append(act);                       \
    connect(act,SIGNAL(triggered()),this,SLOT(slot_##act()));}while(0)
#define action_create_key(act,lb,st) do{            \
    Q_ASSERT(qactionlist->contains(act)==false);    \
    act = new QAction(lb,this);                     \
    act->setShortcut(st);                           \
    act->setToolTip(act->shortcut().toString());    \
    act->setStatusTip(lb);                          \
    qactionlist->append(act);                       \
    connect(act,SIGNAL(triggered()),this,SLOT(slot_##act()));}while(0)
#define action_create_none(act,lb) do{              \
    Q_ASSERT(qactionlist->contains(act)==false);    \
    act = new QAction(lb,this);                     \
    act->setStatusTip(lb);                          \
    qactionlist->append(act);                       \
    connect(act,SIGNAL(triggered()),this,SLOT(slot_##act()));}while(0)

    /*工具栏按钮*/
    action_create_icon(qactionNew,          ":/image/png/doc_new.png",          tr("新建"),   QKeySequence::New);
    action_create_icon(qactionOpen,         ":/image/png/folder_open.png",      tr("打开"),   QKeySequence::Open);
    action_create_icon(qactionSave,         ":/image/png/save.png",             tr("保存"),   QKeySequence::Save);
    action_create_icon(qactionSaveAs,       ":/image/png/save_as.png",          tr("另存为"), QKeySequence::SaveAs);
    action_create_icon(qactionSaveAll,      ":/image/png/save_all.png",         tr("全保存"), Qt::CTRL|Qt::SHIFT|Qt::Key_S);
    action_create_icon(qactionPrint,        ":/image/png/print.png",            tr("打印"),   QKeySequence::Print);
    action_create_icon(qactionCut,          ":/image/png/clipboard_cut.png",    tr("剪切"),   QKeySequence::Cut);
    action_create_icon(qactionCopy,         ":/image/png/clipboard_copy.png",   tr("拷贝"),   QKeySequence::Copy);
    action_create_icon(qactionPaste,        ":/image/png/clipboard_past.png",   tr("粘贴"),   QKeySequence::Paste);
    action_create_icon(qactionUndo,         ":/image/png/undo.png",             tr("撤销"),   QKeySequence::Undo);
    action_create_icon(qactionRedo,         ":/image/png/redo.png",             tr("重做"),   QKeySequence::Redo);
    action_create_icon(qactionSearch,       ":/image/png/search.png",           tr("搜索"),   Qt::CTRL|Qt::Key_F3);
    action_create_icon(qactionSearchBackward,":/image/png/search_prev.png",     tr("向上搜索"),QKeySequence::FindPrevious);
    action_create_icon(qactionSearchForward,":/image/png/search_next.png",      tr("向下搜索"),QKeySequence::FindNext);
    action_create_icon(qactionSearchFiles,  ":/image/png/search_files.png",     tr("搜索文件"),Qt::CTRL|Qt::Sheet|Qt::Key_F);
    action_create_icon(qactionReplace,      ":/image/png/replace.png",          tr("替换"),   QKeySequence::Replace);
    action_create_icon(qactionGotoPrevLink, ":/image/png/sq_br_first.png",      tr("前一结果"),Qt::Key_F4);
    action_create_icon(qactionGotoNextLink, ":/image/png/rnd_br_last.png",      tr("后一结果"),Qt::CTRL|Qt::Key_F4);
    action_create_icon(qactionGoBack,       ":/image/png/round_arrow_left.png", tr("向前"),   Qt::ALT|Qt::Key_Period);
    action_create_icon(qactionGoForward,    ":/image/png/round_arrow_right.png",tr("向后"),   Qt::ALT|Qt::Key_Market);
    action_create_icon(qactionGotoLine,     ":/image/png/goto_line.png",        tr("跳转"),   Qt::Key_F6);
    action_create_icon(qactionBookmark,     ":/image/png/bookmark_2.png",       tr("书签"),   Qt::CTRL|Qt::Key_M);
    action_create_icon(qactionJumpToDefinition,":/image/png/target.png",        tr("定义"),   Qt::CTRL|Qt::Key_Equal);
    action_create_icon(qactionSymbolInfo,   ":/image/png/info.png",             tr("符号信息"),Qt::ALT|Qt::Key_Slash);
    action_create_icon(qactionBrowseProjectSymbol,":/image/png/google.png",     tr("搜索符号"),Qt::Key_F7);
    action_create_icon(qactionLookUpReference,":/image/png/layers_2.png",       tr("搜索引用"),Qt::CTRL|Qt::Key_Slash);
    action_create_icon(qactionTileVertical, ":/image/png/app_vert_two.png",     tr("垂直平铺"),Qt::ALT|Qt::Key_F8);
    action_create_icon(qactionTileHorizontal,":/image/png/app_hori_two.png",    tr("水平平铺"),Qt::ALT|Qt::Key_F9);
    action_create_icon(qactionTileOneWindow,":/image/png/app_only_one.png",     tr("独占显示"),Qt::ALT|Qt::Key_F10);
    action_create_icon(qactionTileTwoWindow,":/image/png/box.png",              tr("平行显示"),Qt::ALT|Qt::Key_F11);
    action_create_icon(qactionCascadeWindows,":/image/png/app_hori_vert.png",   tr("层叠显示"),Qt::ALT|Qt::Key_F12);
    action_create_icon(qactionHtmlHelp,     ":/image/png/help.png",             tr("帮助"),   Qt::Key_F1);
    action_create_icon(qactionProjectWindow,":/image/png/win_project.png",      tr("工程窗口"),Qt::Key_F9);
    action_create_icon(qactionContextWindow,":/image/png/win_content.png",      tr("内容窗口"),Qt::Key_F10);
    action_create_icon(qactionRelationWindow,":/image/png/win_relation.png",    tr("关系窗口"),Qt::Key_F11);
    action_create_icon(qactionClipWindow,   ":/image/png/win_chips.png",        tr("剪切板窗口"),Qt::Key_F12);
    action_create_icon(qactionActivateSearchResultWindow,":/image/png/browser.png",tr("结果窗口"),Qt::Key_F8);
    /*file菜单*/
    action_create_key(qactionNewChip,tr("新片段"),Qt::CTRL|Qt::SHIFT|Qt::Key_N);
    action_create_key(qactionClose,tr("当前关闭"),Qt::CTRL|Qt::Key_W);
    action_create_key(qactionCloseAll,tr("全部关闭"),Qt::CTRL|Qt::SHIFT|Qt::Key_W);
    action_create_none(qactionReloadFile,tr("当前重载"));
    action_create_none(qactionReloadAll,tr("全部重载"));
    action_create_none(qactionRename,tr("重命名"));
    action_create_none(qactionDeleteFile,"删除文件");
    action_create_none(qactionLoadWorkspace,tr("加载工作区"));
    action_create_none(qactionSaveWorkspace,tr("保存工作区"));
    action_create_none(qactionPageSetup,tr("页面设置"));
    action_create_key(qactionExit,tr("退出"),QKeySequence::Close);
    /*Edit*/
    action_create_none(qactionUndoAll,tr("全部撤销"));
    action_create_none(qactionRedoAll,tr("全部重做"));
    action_create_none(qactionDuplicate,tr("刻录"));
    action_create_key(qactionCutToClip,tr("片段剪切"),Qt::CTRL|Qt::SHIFT|Qt::Key_X);
    action_create_key(qactionCopyToClip,tr("片段拷贝"),Qt::CTRL|Qt::Key_Delete);
    action_create_key(qactionPasteFromClip,tr("片段粘帖"),Qt::CTRL|Qt::Key_Insert);
    action_create_none(qactionInsertFile,tr("插入文件"));
    action_create_key(qactionRenumber,tr("重新编号"),Qt::CTRL|Qt::Key_R);
    action_create_key(qactionSmartRename,tr("智能重命名"),Qt::CTRL|Qt::Key_Apostrophe);
    action_create_none(qactionSelectAll,tr("全部选择"));
    action_create_none(qactionSelectFunctionOrSymbol,tr("函符选择"));
    action_create_key(qactionSelectBlock,tr("代码快选择"),Qt::CTRL|Qt::Key_Plus);
    action_create_key(qactionStartRecording,tr("开始录制"),Qt::CTRL|Qt::Key_F1);
    action_create_key(qactionStopRecording,tr("停止录制"),Qt::CTRL|Qt::Key_F2);
    action_create_key(qactionPlayRecording,tr("播放录制"),Qt::CTRL|Qt::Key_F3);
    /*Search*/
    action_create_none(qactionSearchProject,tr("搜索项目"));
    action_create_key(qactionReplaceFiles,tr("文件替换"),Qt::CTRL|Qt::SHIFT|Qt::Key_H);
    action_create_key(qactionSelectionHistory,tr("历史选择"),Qt::CTRL|Qt::SHIFT|Qt::Key_M);
    action_create_key(qactionJumpToLink,tr("链接跳转"),Qt::CTRL|Qt::Key_L);
    action_create_none(qactionParseSourceLinks,tr("格式代码链"));
    action_create_key(qactionBrowseLocalFileSystem,tr("浏览本地"),Qt::Key_F8);
    /*project*/
    action_create_key(qactionNewProject,tr("新建项目"),Qt::ALT|Qt::SHIFT|Qt::Key_N);
    action_create_key(qactionOpenProject,tr("打开项目"),Qt::ALT|Qt::SHIFT|Qt::Key_P);
    action_create_key(qactionCloseProject,tr("关闭项目"),Qt::ALT|Qt::SHIFT|Qt::Key_W);
    action_create_none(qactionRemoveProject,tr("移除项目"));
    action_create_none(qactionAddAndRemoveProjectFiles,tr("增减项目文件"));
    action_create_key(qactionSynchronizeFiles,tr("项目符号同步"),Qt::ALT|Qt::SHIFT|Qt::Key_S);
    action_create_none(qactionProjectReport,tr("项目报告"));
    action_create_none(qactionRebuildProject,tr("重建项目"));
    action_create_none(qactionProjectSettings,tr("项目设置"));
    /*options*/
    action_create_none(qactionPreferences,tr("参数"));
    action_create_key(qactionDocumentOptions,tr("文档选项"),Qt::ALT|Qt::Key_T);
    action_create_none(qactionStyleProperties,tr("样式表"));
    action_create_none(qactionKeyAssignments,tr("快捷键助手"));
    action_create_none(qactionMenuAssignments,tr("菜单助手"));
    action_create_none(qactionCustormCommands,tr("用户指令"));
    action_create_none(qactionLoadConfiguration,tr("加载配置"));
    action_create_none(qactionSaveConfiguration,tr("保存配置"));
    /*view*/
    action_create_none(qactionStatusBar,tr("状态栏"));
    action_create_none(qactionHorizontalScrollBar,tr("水平滚动条"));
    action_create_none(qactionLineNumber,tr("行号"));
    action_create_key(qactionSymbolWindow,tr("符号窗口"),Qt::ALT|Qt::Key_F8);
    action_create_none(qactionShowClipboard,tr("显示剪切板"));
    action_create_none(qactionDraftView,tr("等宽视图"));
    /*window*/
    action_create_key(qactionNewWindow,tr("新建窗口"),Qt::ALT|Qt::Key_F5);
    action_create_key(qactionCloseWindow,tr("关闭窗口"),Qt::ALT|Qt::Key_F6);
    action_create_none(qactionLinkWindow,tr("联合窗口"));
    action_create_none(qactionLinkAllWindow,tr("联合所有窗口"));
    action_create_none(qactionWindowList,tr("窗口列表"));
    /*help*/
    action_create_key(qactionHelp,tr("帮助"),Qt::Key_F1);
    action_create_none(qactionHelpMode,tr("帮助模式"));
    action_create_key(qactionSDKhelp,tr("帮助文档"),Qt::ALT|Qt::Key_F1);
    action_create_none(qactionCreateKeyList,tr("快捷键列表"));
    action_create_none(qactionCreateCommandList,tr("命令列表"));
    action_create_none(qactionOrderingInformation,tr("订购"));
    action_create_none(qactionSerialNumber,tr("序列号"));
    action_create_none(qactionSourceDynamicsOnTheWeb,tr("官方主页"));
    action_create_none(qactionAbout,tr("关于"));
#undef action_create_icon
#undef action_create_key
#undef action_create_none
}

void qmainWidget::createMainMenu(void)
{
    QList<QAction*> list;

    QMenu *file = pmenubar->addMenu(tr("文件(&F)"));
    QMenu *edit = pmenubar->addMenu(tr("编辑(&E)"));
    QMenu *search = pmenubar->addMenu(tr("搜索(&S)"));
    QMenu *project = pmenubar->addMenu(tr("项目(&P)"));
    QMenu *options = pmenubar->addMenu(tr("选项(&O)"));
    QMenu *view = pmenubar->addMenu(tr("视图(&V)"));
    QMenu *window = pmenubar->addMenu(tr("窗口(&W)"));
    QMenu *help = pmenubar->addMenu(tr("帮助(&H)"));

    list.clear();
    list.append(qactionNew);
    list.append(qactionOpen);
    list.append(qactionNewChip);
    list.append(qactionClose);
    list.append(qactionCloseAll);
    list.append(qactionReloadFile);
    list.append(qactionReloadAll);
    list.append(qactionRename);
    list.append(qactionDeleteFile);
    list.append(qactionSave);
    list.append(qactionSaveAs);
    list.append(qactionSaveAll);
    list.append(qactionLoadWorkspace);
    list.append(qactionSaveWorkspace);
    list.append(qactionPrint);
    list.append(qactionPageSetup);
    list.append(qactionExit);
    file->addActions(list);

    list.clear();
    list.append(qactionUndo);
    list.append(qactionRedo);
    list.append(qactionUndoAll);
    list.append(qactionRedoAll);
    list.append(qactionCut);
    list.append(qactionCopy);
    list.append(qactionPaste);
    list.append(qactionDuplicate);
    list.append(qactionCutToClip);
    list.append(qactionCopyToClip);
    list.append(qactionPasteFromClip);
    list.append(qactionInsertFile);
    list.append(qactionRenumber);
    list.append(qactionSmartRename);
    list.append(qactionSelectAll);
    list.append(qactionSelectFunctionOrSymbol);
    list.append(qactionSelectBlock);
    //list.append();
    list.append(qactionStartRecording);
    list.append(qactionStopRecording);
    list.append(qactionPlayRecording);
    edit->addActions(list);

    list.clear();
    list.append(qactionSearch);
    list.append(qactionSearchFiles);
    list.append(qactionSearchProject);
    list.append(qactionLookUpReference);
    list.append(qactionSearchForward);
    list.append(qactionSearchBackward);
    list.append(qactionReplace);
    list.append(qactionReplaceFiles);
    list.append(qactionBookmark);
    list.append(qactionSelectionHistory);
    list.append(qactionGotoLine);
    list.append(qactionGoBack);
    list.append(qactionGoForward);
    list.append(qactionJumpToLink);
    list.append(qactionGotoPrevLink);
    list.append(qactionGotoNextLink);
    list.append(qactionParseSourceLinks);
    list.append(qactionBrowseProjectSymbol);
    list.append(qactionBrowseLocalFileSystem);
    list.append(qactionJumpToLink);
    search->addActions(list);

    list.clear();
    list.append(qactionNewProject);
    list.append(qactionOpenProject);
    list.append(qactionCloseProject);
    list.append(qactionRemoveProject);
    list.append(qactionAddAndRemoveProjectFiles);
    list.append(qactionSynchronizeFiles);
    list.append(qactionProjectReport);
    list.append(qactionRebuildProject);
    list.append(qactionProjectSettings);
    project->addActions(list);

    list.clear();
    list.append(qactionPreferences);
    list.append(qactionDocumentOptions);
    list.append(qactionStyleProperties);
    list.append(qactionKeyAssignments);
    list.append(qactionMenuAssignments);
    list.append(qactionCustormCommands);
    list.append(qactionLoadConfiguration);
    list.append(qactionSaveConfiguration);
    options->addActions(list);

    list.clear();
    list.append(qactionStatusBar);
    list.append(qactionHorizontalScrollBar);
    list.append(qactionLineNumber);
    list.append(qactionProjectWindow);
    list.append(qactionClipWindow);
    list.append(qactionSymbolWindow);
    list.append(qactionContextWindow);
    list.append(qactionRelationWindow);
    list.append(qactionShowClipboard);
    list.append(qactionDraftView);
    view->addActions(list);

    list.clear();
    list.append(qactionNewWindow);
    list.append(qactionCloseWindow);
    list.append(qactionCascadeWindows);
    list.append(qactionTileHorizontal);
    list.append(qactionTileVertical);
    list.append(qactionTileOneWindow);
    list.append(qactionTileTwoWindow);
    list.append(qactionLinkWindow);
    list.append(qactionLinkAllWindow);
    list.append(qactionWindowList);
    window->addActions(list);

    list.clear();
    list.append(qactionHelp);
    list.append(qactionHelpMode);
    list.append(qactionSDKhelp);
    list.append(qactionCreateKeyList);
    list.append(qactionCreateCommandList);
    list.append(qactionOrderingInformation);
    list.append(qactionSerialNumber);
    list.append(qactionSourceDynamicsOnTheWeb);
    list.append(qactionAbout);
    help->addActions(list);
}

void qmainWidget::createMainToolBar(void)
{
    QList<QAction*> list;
    QToolBar *tool = new QToolBar(tr("标准"),this);
    tool->setToolButtonStyle(Qt::ToolButtonIconOnly);
    list.clear();
    list.append(qactionNew);
    list.append(qactionOpen);
    list.append(qactionSave);
    list.append(qactionSaveAs);
    list.append(qactionSaveAll);
    list.append(qactionPrint);
    tool->addActions(list);
    addToolBar(tool);

    tool = new QToolBar(tr("编辑"),this);
    tool->setToolButtonStyle(Qt::ToolButtonIconOnly);
    list.clear();
    list.append(qactionCut);
    list.append(qactionCopy);
    list.append(qactionPaste);
    list.append(qactionUndo);
    list.append(qactionRedo);
    tool->addActions(list);
    addToolBar(tool);

    tool = new QToolBar(tr("搜索"),this);
    tool->setToolButtonStyle(Qt::ToolButtonIconOnly);
    list.clear();
    list.append(qactionSearch);
    list.append(qactionSearchBackward);
    list.append(qactionSearchForward);
    list.append(qactionSearchFiles);
    list.append(qactionReplace);
    tool->addActions(list);
    addToolBar(tool);

    tool = new QToolBar(tr("导航"),this);
    tool->setToolButtonStyle(Qt::ToolButtonIconOnly);
    list.clear();
    list.append(qactionGotoPrevLink);
    list.append(qactionGotoNextLink);
    list.append(qactionGoBack);
    list.append(qactionGoForward);
    list.append(qactionGotoLine);
    list.append(qactionBookmark);
    list.append(qactionJumpToDefinition);
    list.append(qactionSymbolInfo);
    list.append(qactionBrowseProjectSymbol);
    list.append(qactionLookUpReference);
    tool->addActions(list);
    addToolBar(tool);

    tool = new QToolBar(tr("布局"),this);
    tool->setToolButtonStyle(Qt::ToolButtonIconOnly);
    list.clear();
    list.append(qactionTileOneWindow);
    list.append(qactionTileVertical);
    list.append(qactionTileHorizontal);
    list.append(qactionTileTwoWindow);
    list.append(qactionCascadeWindows);
    tool->addActions(list);
    addToolBar(tool);

    tool = new QToolBar(tr("窗口"),this);
    tool->setToolButtonStyle(Qt::ToolButtonIconOnly);
    list.clear();
    list.append(qactionHtmlHelp);
    list.append(qactionProjectWindow);
    list.append(qactionContextWindow);
    list.append(qactionRelationWindow);
    list.append(qactionClipWindow);
    list.append(qactionActivateSearchResultWindow);
    tool->addActions(list);
    addToolBar(tool);

}

void qmainWidget::createDockWidget()
{
#define dock_create_icon(dock,title) do{      \
    dock = new QDockWidget(title,this);         \
    dock->setAllowedAreas(Qt::LeftDockWidgetArea|Qt::RightDockWidgetArea|Qt::BottomDockWidgetArea);\
    dock->setFeatures(QDockWidget::DockWidgetClosable|QDockWidget::DockWidgetMovable|QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetVerticalTitleBar);\
    dock->setStatusTip(title);}while(0)

    dock_create_icon(qdockHtmlHelp,tr("帮助"));

    //dock_create_icon(qdockProjectWindow,tr("项目"));
    qdockProjectWindow = new projectWindow(tr("项目"),this);
    qdockProjectWindow->setAllowedAreas(Qt::LeftDockWidgetArea|Qt::RightDockWidgetArea|Qt::BottomDockWidgetArea);
    qdockProjectWindow->setFeatures(QDockWidget::DockWidgetClosable|QDockWidget::DockWidgetMovable|QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetVerticalTitleBar);
    qdockProjectWindow->setStatusTip(tr("项目"));

    dock_create_icon(qdockContextWindow,tr("内容"));
    dock_create_icon(qdockRelationWindow,tr("关系"));
    dock_create_icon(qdockClipWindow,tr("剪辑"));
    dock_create_icon(qdockActivateSearchResultWindow,tr("搜索"));
#undef dock_create_icon

    this->addDockWidget(Qt::RightDockWidgetArea,qdockHtmlHelp);
    this->addDockWidget(Qt::LeftDockWidgetArea,qdockProjectWindow);
    this->addDockWidget(Qt::BottomDockWidgetArea,qdockContextWindow);
    this->addDockWidget(Qt::BottomDockWidgetArea,qdockRelationWindow);
    this->addDockWidget(Qt::BottomDockWidgetArea,qdockClipWindow);
    this->addDockWidget(Qt::BottomDockWidgetArea,qdockActivateSearchResultWindow);


}

void qmainWidget::slot_qactionNew()
{

}

void qmainWidget::slot_qactionOpen()
{

}

void qmainWidget::slot_qactionSave()
{

}

void qmainWidget::slot_qactionSaveAs()
{

}

void qmainWidget::slot_qactionSaveAll()
{

}

void qmainWidget::slot_qactionPrint()
{

}

void qmainWidget::slot_qactionCut()
{

}

void qmainWidget::slot_qactionCopy()
{

}

void qmainWidget::slot_qactionPaste()
{

}

void qmainWidget::slot_qactionUndo()
{

}

void qmainWidget::slot_qactionRedo()
{

}

void qmainWidget::slot_qactionSearch()
{

}

void qmainWidget::slot_qactionSearchBackward()
{

}

void qmainWidget::slot_qactionSearchForward()
{

}

void qmainWidget::slot_qactionSearchFiles()
{

}

void qmainWidget::slot_qactionReplace()
{

}

void qmainWidget::slot_qactionGotoPrevLink()
{

}

void qmainWidget::slot_qactionGotoNextLink()
{

}

void qmainWidget::slot_qactionGoBack()
{

}

void qmainWidget::slot_qactionGoForward()
{

}

void qmainWidget::slot_qactionGotoLine()
{

}

void qmainWidget::slot_qactionBookmark()
{

}

void qmainWidget::slot_qactionJumpToDefinition()
{

}

void qmainWidget::slot_qactionSymbolInfo()
{

}

void qmainWidget::slot_qactionBrowseProjectSymbol()
{

}

void qmainWidget::slot_qactionLookUpReference()
{

}

void qmainWidget::slot_qactionTileHorizontal()
{

}

void qmainWidget::slot_qactionTileOneWindow()
{

}

void qmainWidget::slot_qactionTileTwoWindow()
{

}

void qmainWidget::slot_qactionCascadeWindows()
{

}

void qmainWidget::slot_qactionHtmlHelp()
{

}

void qmainWidget::slot_qactionProjectWindow()
{

}

void qmainWidget::slot_qactionSymbolWindow()
{

}

void qmainWidget::slot_qactionContextWindow()
{

}

void qmainWidget::slot_qactionRelationWindow()
{

}

void qmainWidget::slot_qactionClipWindow()
{

}

void qmainWidget::slot_qactionActivateSearchResultWindow()
{

}

void qmainWidget::slot_qactionNewChip()
{

}

void qmainWidget::slot_qactionClose()
{

}

void qmainWidget::slot_qactionCloseAll()
{

}

void qmainWidget::slot_qactionReloadFile()
{

}

void qmainWidget::slot_qactionReloadAll()
{

}

void qmainWidget::slot_qactionRename()
{

}

void qmainWidget::slot_qactionDeleteFile()
{

}

void qmainWidget::slot_qactionLoadWorkspace()
{

}

void qmainWidget::slot_qactionSaveWorkspace()
{

}

void qmainWidget::slot_qactionPageSetup()
{

}

void qmainWidget::slot_qactionExit()
{
    this->close();
}

void qmainWidget::slot_qactionUndoAll()
{

}

void qmainWidget::slot_qactionRedoAll()
{

}

void qmainWidget::slot_qactionDuplicate()
{

}

void qmainWidget::slot_qactionCutToClip()
{

}

void qmainWidget::slot_qactionCopyToClip()
{

}

void qmainWidget::slot_qactionPasteFromClip()
{

}

void qmainWidget::slot_qactionInsertFile()
{

}

void qmainWidget::slot_qactionRenumber()
{

}

void qmainWidget::slot_qactionSmartRename()
{

}

void qmainWidget::slot_qactionSelectAll()
{

}

void qmainWidget::slot_qactionSelectFunctionOrSymbol()
{

}

void qmainWidget::slot_qactionSelectBlock()
{

}

void qmainWidget::slot_qactionUppercase()
{

}

void qmainWidget::slot_qactionLowercase()
{

}

void qmainWidget::slot_qactionToggleCase()
{

}

void qmainWidget::slot_qactionSpaceToTab()
{

}

void qmainWidget::slot_qactionTabToSpace()
{

}

void qmainWidget::slot_qactionInsertASCII()
{

}

void qmainWidget::slot_qactionReformParagraph()
{

}

void qmainWidget::slot_qactionCalculate()
{

}

void qmainWidget::slot_qactionIndentRight()
{

}

void qmainWidget::slot_qactionIndentLeft()
{

}

void qmainWidget::slot_qactionStartRecording()
{

}

void qmainWidget::slot_qactionStopRecording()
{

}

void qmainWidget::slot_qactionPlayRecording()
{

}

void qmainWidget::slot_qactionSearchProject()
{

}

void qmainWidget::slot_qactionReplaceFiles()
{

}

void qmainWidget::slot_qactionSelectionHistory()
{

}

void qmainWidget::slot_qactionJumpToLink()
{

}

void qmainWidget::slot_qactionParseSourceLinks()
{

}

void qmainWidget::slot_qactionBrowseLocalFileSystem()
{

}

void qmainWidget::slot_qactionNewProject()
{
    NewProjectSettings *projectSet=new NewProjectSettings();
    QRect rc1=this->rect();
    QRect rc2=projectSet->rect();
    projectSet->move(this->pos().rx()+(rc1.width()-rc2.width())/2,this->pos().ry()+64);
    projectSet->show();
}

void qmainWidget::slot_qactionOpenProject()
{

}

void qmainWidget::slot_qactionCloseProject()
{

}

void qmainWidget::slot_qactionRemoveProject()
{

}

void qmainWidget::slot_qactionAddAndRemoveProjectFiles()
{
    addRemoveFilesWidget *projectSet=new addRemoveFilesWidget();
    QRect rc1=this->rect();
    QRect rc2=projectSet->rect();
    projectSet->move(this->pos().rx()+(rc1.width()-rc2.width())/2,this->pos().ry()+64);
    projectSet->show();
}

void qmainWidget::slot_qactionSynchronizeFiles()
{

}

void qmainWidget::slot_qactionProjectReport()
{

}

void qmainWidget::slot_qactionRebuildProject()
{

}

void qmainWidget::slot_qactionProjectSettings()
{

}

void qmainWidget::slot_qactionPreferences()
{

}

void qmainWidget::slot_qactionDocumentOptions()
{

}

void qmainWidget::slot_qactionStyleProperties()
{

}

void qmainWidget::slot_qactionKeyAssignments()
{

}

void qmainWidget::slot_qactionMenuAssignments()
{

}

void qmainWidget::slot_qactionCustormCommands()
{

}

void qmainWidget::slot_qactionLoadConfiguration()
{

}

void qmainWidget::slot_qactionSaveConfiguration()
{

}

void qmainWidget::slot_qactionStatusBar()
{

}

void qmainWidget::slot_qactionHorizontalScrollBar()
{

}

void qmainWidget::slot_qactionLineNumber()
{

}

void qmainWidget::slot_qactionShowClipboard()
{

}

void qmainWidget::slot_qactionDraftView()
{

}

void qmainWidget::slot_qactionNewWindow()
{

}

void qmainWidget::slot_qactionCloseWindow()
{

}

void qmainWidget::slot_qactionTileVertical()
{

}

void qmainWidget::slot_qactionLinkWindow()
{

}

void qmainWidget::slot_qactionLinkAllWindow()
{

}

void qmainWidget::slot_qactionWindowList()
{

}

void qmainWidget::slot_qactionHelp()
{

}

void qmainWidget::slot_qactionHelpMode()
{

}

void qmainWidget::slot_qactionSDKhelp()
{

}

void qmainWidget::slot_qactionCreateKeyList()
{

}

void qmainWidget::slot_qactionCreateCommandList()
{

}

void qmainWidget::slot_qactionOrderingInformation()
{

}

void qmainWidget::slot_qactionSerialNumber()
{

}

void qmainWidget::slot_qactionSourceDynamicsOnTheWeb()
{

}

void qmainWidget::slot_qactionAbout()
{

}
